
<?php
    move_uploaded_file($_FILES['file_img']['tmp_name'],'t_images/img/'.$_FILES['file_img']['name']);
//    var_dump($_FILES);
//    echo '文件提交至服务器成功';?>
    <!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>头像上传成功</title>
</head>
<body>
<h1>头像</h1>
<?php
$img_url = 't_images/img/'.$_FILES['file_img']['name'];
//echo $img_url;
?>
你当前上传的头像是:<br/>
<img src="<?php echo $img_url; ?>" >
</body>
</html>
